﻿@model LoginViewModel
@{
    ViewBag.Title = "用户登录";
}


<div class="row">

    <div class="col-md-6">
        <h1>用户登录</h1>
        <hr />
        <form method="post">
            <div asp-validation-summary="All" class="text-danger"></div>

            <div class="form-group">
                <label asp-for="Email"></label>
                <input asp-for="Email" class="form-control" />
                <span asp-validation-for="Email" class="text-danger"></span>
            </div>


            <div class="form-group">
                <label asp-for="Password"></label>
                <input asp-for="Password" class="form-control" />
                <span asp-validation-for="Password" class="text-danger"></span>
            </div>
            <div class="form-group">

                <div class="custom-checkbox">
                    <label asp-for="RememberMe"><input asp-for="RememberMe" /> @Html.DisplayNameFor(m => m.RememberMe)</label>




                </div>

            </div>

            <button type="submit" class="btn btn-primary"> 登录</button>

        </form>
    </div>

    <div class="col-md-6 border-left">

        <form class="mt-3" method="post" asp-action="ExternalLogin" asp-controller="Account" asp-route-returnUrl="@Model.ReturnUrl">
            <div>
                @foreach (var provider in Model.ExternalLogins)
                {
                    <button type="submit" class="btn btn-info" name="provider" value="@provider.Name" title="Log in using your @provider.DisplayName account">
                        @provider.DisplayName
                    </button>
                }
            </div>
        </form>

    </div>
  


</div>






     



